// 导入需要的config和request
import confing from '../config/config.js';
import request from '../util/request.js';


// 申明请求对象
const workTicketDataRequest = {
    // workTicket请求的基本url
    BASE_URL : confing.CZ_URL + "/workTicketData",
    /**
     * 通过工单编号查询字典数据
     * @param {*} workTicketId 
     * @param {*} callback 
     */
    list(workTicketId,callback){
        request.get(this.BASE_URL + "/list?workTicketId=" + workTicketId,callback);
    },
}

// 将workTicketDataRequest暴漏出去
export default workTicketDataRequest;